/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2023-04-12
 * Time: 14:06
 */
public class MatrixAdd {
    public static void main(String[] args) {
        int[][] x = {{12,7,3},{4,5,6}};
        int[][] y = {{5,8,1},{6,7,3}};
        int[][] result = new int[2][3];
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 3; j++) {
                result[i][j] = x[i][j] + y[i][j];
                System.out.println(result[i][j]+" ");
            }
            System.out.println();
        }
    }
}
